<?php


namespace App\Http\Request\System\Role;


use App\Common\Utils\BaseRequest;

class GetPowerTreeRequest extends BaseRequest
{

    public function rules() {
        $rules = [
            'role_id' => 'required|integer',
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'role_id.required' => '角色id不能为空',
            'role_id.integer' => '角色id长度必须为数字',
        ];

        return $messages;
    }
}
